package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 帖子实体炎对应post表
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("post")
public class Post {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("title")
    private String title;

    @TableField("content")
    private String content;

    @TableField("image")
    private String image;

    @TableField("create_time")
    private String createTime;

    @TableField("view_count")
    private Integer viewCount;

    @TableField("status")
    private String status;
}